package com.jy.horny.adapter

import com.jy.horny.base.adpater.BaseRecyclerAdapter
import com.jy.horny.databinding.ItemProfilePhotoBinding
import com.jy.horny.model.HomeListModel
import com.jy.horny.utils.loadThumbnails

class ProfilePhotoAdapter :
    BaseRecyclerAdapter<HomeListModel.PhotoBean, ItemProfilePhotoBinding>(ItemProfilePhotoBinding::inflate) {

    override fun onBindView(
        holder: VH<ItemProfilePhotoBinding>,
        position: Int,
        item: HomeListModel.PhotoBean?
    ) {
        item?.apply {
           holder.binding.itemPhoto.loadThumbnails(item.imageUrl,holder.binding.itemPhoto.width)
        }
    }
}